﻿using System;

namespace My_Second_Demo
{
    class Program
    {
        static void Main(string[] args)
        {
            int n1 = 1;
            int n2 = 2;
            int n3 = n1 + n2;
            Console.WriteLine(n3);
            Console.ReadKey();
 



            int Number = 2;
            int Number2 = 1;
            if(Number > Number2)
            {
                Console.WriteLine("最大的数字为" + Number);
                Console.ReadKey();
            }
            else
            {
                Console.WriteLine("最大的数字为" + Number2);
            }




            Console.WriteLine("请输入你要查询的水果");
            string fruit = Console.ReadLine();
            switch (fruit)
            {
                case "苹果" :
                    Console.WriteLine("苹果的价格为5元一斤");
                    break;

                case "香蕉":
                    Console.WriteLine("香蕉的价格为4元一斤");
                    break;

                case "榴莲":
                    Console.WriteLine("榴莲的价格为4元一斤");
                    break;

                case "西瓜":
                    Console.WriteLine("西瓜的价格为3元一斤");
                    break;

                default :
                    Console.WriteLine("没有此水果");
                    break;


            }
        }
    }
}
